<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Systems');
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="col-md-12">
    <h1><?= Html::encode('系统设置') ?></h1>

</div>
<?php
    echo $this->render('/layouts/menu');
?>
<div class="col-md-10 container-left">
    <?php Pjax::begin(); ?>    <?= GridView::widget([
            'dataProvider' => $dataProvider,
            'columns' => [
                //['class' => 'yii\grid\SerialColumn'],
                'type',
                'name',
                //'createat',
                [
                    'label' => '头像',
                    'format' => [
                        'image',
                        [
//                            'width'=>'84',
                            'height'=>'84'
                        ]
                    ],
                    'value' => function ($model) {
                        return '/uploads/gzhimg/'.$model->img;
                    }
                ],
                [
                    'class' => 'yii\grid\ActionColumn',
                    'template' =>'{update}'
                ],
            ],
        ]); ?>
    <?php Pjax::end(); ?>
</div>

